<div class="span12">
        	<table id="contrast" class="table table-striped">
        		<tbody>
        			<tr>
        				<?php foreach ($this->data as $k=>$value):?>
        				<td>
							<br />
		        			<p>
			        			<a id="img_big" href="<?= $this->url(array('controller'=>'buy','action'=>'view','cid'=>"$value[id]"),null,true) ?>" target="_blank">
			                        <img id="b_0" src="/img/noimg_small.gif" data-original="<?= $value[img_dir].$value[session_id].'/'.$value[session_id].str_replace('.', '_small.', $value[car_img])?>" />
			                    </a>
		                    </p>
		                    <p class="contrast_title">
			        			<a href="<?= $this->url(array('controller'=>'buy','action'=>'view','cid'=>"$value[id]"),null,true) ?>" target="_blank">
			                        <?=$value[title]?>
			                    </a>
		                    </p>
		                    <p><h5>价格: <?= $value[price]?>万元</h5></p>
		                    
		                    <p>
								<a href="<?= $this->url(array('controller'=>'buy','action'=>'view','cid'=>"$value[id]"),null,true) ?>" target="_blank">点击查看联系方式</a>
		                    </p>
		                    <hr />
		                    <p>车辆编号: <?= $value[id]?></p>
		                    <p>发布时间: <?= date("Y-m-d", $value[created_at])?></p>
		                    
	                    	<p>车辆颜色: <?= $value[color_name]?>&nbsp;&nbsp;<i style="background-color:<?= $value[color_value]?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i></p>

	                    	<p>上牌时间: <?= $value[car_year]."年".$value[car_month]."月";?></p>
	                    	<p>行驶里程: <?= $value[kilometer]?>公里</p>
		                    <?php if ($value[pailiang]):?>
		                    	<p>排量: <?= $value[pailiang]?></p>
		                    <?php endif;?>
		                    <?php if ($value[biansuxiang]):?>
		                    <p>变速箱: <?= $value[biansuxiang]?></p>
		                    <?php endif;?>
	                    	<p>
	                    	年检日期:
	                    	<?php if ($value[check_year] == -1):?>
	                    		<?= "已过期"?>
	                    	<?php else:?>
	                    		<?= $value[check_year]."年".$value[check_month]."月"?>
	                    	<?php endif;?>
	                    	</p>
	                    	<p>保险日期: 
		                    <?php if ($value[safe_year] == -1):?>
	                    		<?= "已过期"?>
	                    	<?php else:?>
	                    		<?= $value[safe_year]."年".$value[safe_month]."月"?>
	                    	<?php endif;?>
	                    	</p>
	                    	<p>车辆类型: 
	                    	<?php if ($value[car_operate] == 0):?>
	                    		<?= "非营运"?>
							<?php elseif ($value[car_operate] == 1):?>
								<?= "营运"?>
							<?php elseif ($value[car_operate] == 2):?>
								<?= "营专非"?>
	                    	<?php endif;?>
	                    	</p>
	                    	<p>保养情况: 
	                    	<?php if ($value[maintenance] == 0):?>
	                    		<?= "4S店定期保养"?>
							<?php elseif ($value[maintenance] == 1):?>
								<?= "非4S店定期保养"?>
							<?php elseif ($value[maintenance] == 2):?>
								<?= "无定期保养"?>
	                    	<?php endif;?>
	                    	</p>
	                    	<p><h5>详细图片</h5></p>
		                    <?php foreach (unserialize($value[img_arr]) as $k=>$value2):?>
		                        <p>
			                        <a href="<?= $this->url(array('controller'=>'buy','action'=>'view','cid'=>"$value[id]"),null,true) ?>" target="_blank">
			                        <img src="/img/noimg_small.gif" data-original="<?= $value[img_dir].$value[session_id].'/'.$value[session_id].str_replace('.', '_small.', $value2)?>" id="aimg_<?= $k?>">
			                        </a>
			                        <?php if ($k > 2):?>
			                        <?php break;?>
			                        <?php endif;?>
		                        </p>	
		                    <?php endforeach;?>
                    		<p><a href="<?= $this->url(array('controller'=>'buy','action'=>'view','cid'=>"$value[id]"),null,true) ?>" target="_blank">查看大图(共<?= count(unserialize($value[img_arr]))?>张)</a></p>
        				<?php endforeach;?>

        			</tr>
        			
   
        		</tbody>
        	
        	</table>

</div>